import $store from './../../store';
//  surplusData: 0, //剩余时间 开售时间-当前时间=剩余时间的毫秒数
function getSurplusData(time) {
  if (time >= 0) {
    setTimeout(() => {
      $store.state.buyTicket.surplusData -= 1;
      getSurplusData($store.state.buyTicket.surplusData);
    }, 1000);
  }
}

export {
  getSurplusData
};
